package com.bwie.controller;

import com.bwie.service.TbLogService;
import com.bwie.utils.R;
import com.bwie.vo.LogPageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/5/5 11:11
 */
@RestController
@RequestMapping("/user/log")
public class LogController {

    @Autowired
    TbLogService tbLogService;

    /**
     * @description 分页从ES中获取日志的列表
     * @params [logPageVo]
     * @return com.bwie.utils.R
     * @author 军哥
     * @date 2025/5/5 11:13
     */
    @PostMapping("/getLogList")
    public R getLogList(@RequestBody LogPageVo logPageVo) {
        return tbLogService.getLogList(logPageVo);
    }

}
